package com.guoxue.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.guoxue.dao.ILevelConfigDao;
import com.guoxue.domain.LevelConfigVo;
import com.guoxue.service.ILevelConfigService;

@Service("levelConfigService")
public class LevelConfigServiceImpl implements ILevelConfigService{
	@Resource
	private ILevelConfigDao dao;

	@Override
	public LevelConfigVo getLevelByExp(int exp) {
		return dao.getLevelByExp(exp);
	}

	@Override
	public LevelConfigVo getNextLevelByExp(int exp) {
		return dao.getNextLevelByExp(exp);
	}

	@Override
	public LevelConfigVo getMaxLevel() {
		return dao.getMaxLevel();
	}

	@Override
	public List<LevelConfigVo> getLevelList() {
		return dao.getLevelList();
	}

	@Override
	public int getAfterLevelTotalExp(int i) {
		return dao.getAfterLevelTotalExp(i);
		
	}

	@Override
	public LevelConfigVo getLevelBylevel(int i) {
		return dao.getLevelBylevel(i);
		
	}

}
